import request from "../utils/request";

export const userInfoService = () => request.get('/api/auth/userInfo')
export const userLogin = (loginData)=> request.get("/api/user/login",{
    params:{
        ...loginData
    }
})

export const getUserList = (params) => request.get('/api/user/list',{params})
export const deleteUser = (id) => request.delete('/api/user/'+id)
export const insertUser = (obj) => request.post('/api/user',obj)
export const updateUser = (obj) => request.put('/api/user',obj)

// 新增行为分析相关接口
export const getBehaviorData = (params) => request.get('/api/behavior/data', { params })
export const getInactiveUsers = (params) => request.get('/api/user/inactive', { params })
export const sendRecallNotice = (params) => request.post('/api/user/recall', params)
export const exportConversionData = (params) => request.get('/api/behavior/export', { params })

// 新增活跃度统计相关接口
export const getActivityStats = (params) => request.get('/api/user/activity/stats', { params })
export const getActiveUsers = (params) => request.get('/api/user/activity/list', { params })
export const exportActivityStats = (params) => request.get('/api/user/activity/export', { params })
